package com.testdocs.client.common;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Label;

public class StatusBar extends Composite {
	Label statusLabel = new Label();
	
	public StatusBar() {
		initWidget(statusLabel);
	}
	
	public void setStatus(String text) {
		statusLabel.setText(text);
	}
	
	public void setError(String text) {
		statusLabel.setText(text);
	}

	public void clear() {
		statusLabel.setText("");
	}
}
